#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
#include<assert.h>
char* my_strcpy(char* p1,const char* p2)
{
	assert(p1 != NULL && p2 != NULL);
	char* tmp = p1;
	while (*p2)
		*p1++ = *p2++;
	*p1 = *p2;
	return tmp;
}
int main()
{
	char a[20] = "******************";
	char b[] = "hello bit";
	printf("%s\n", my_strcpy(a, b));
	printf("%s\n", strcpy(a, b));
	return 0;
}